<%@page contentType="text/html;charset=UTF-8"%>
<% request.setCharacterEncoding("UTF-8"); %>
<HTML>
<HEAD>
<TITLE>Result</TITLE>
</HEAD>
<BODY>
<H1>Result</H1>

<jsp:useBean id="sampleCatalogProxyid" scope="session" class="archsw0904.controller.catalog.CatalogProxy" />
<%
if (request.getParameter("endpoint") != null && request.getParameter("endpoint").length() > 0)
sampleCatalogProxyid.setEndpoint(request.getParameter("endpoint"));
%>

<%
String method = request.getParameter("method");
int methodID = 0;
if (method == null) methodID = -1;

if(methodID != -1) methodID = Integer.parseInt(method);
boolean gotMethod = false;

try {
switch (methodID){ 
case 2:
        gotMethod = true;
        java.lang.String getEndpoint2mtemp = sampleCatalogProxyid.getEndpoint();
if(getEndpoint2mtemp == null){
%>
<%=getEndpoint2mtemp %>
<%
}else{
        String tempResultreturnp3 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(getEndpoint2mtemp));
        %>
        <%= tempResultreturnp3 %>
        <%
}
break;
case 5:
        gotMethod = true;
        String endpoint_0id=  request.getParameter("endpoint8");
            java.lang.String endpoint_0idTemp = null;
        if(!endpoint_0id.equals("")){
         endpoint_0idTemp  = endpoint_0id;
        }
        sampleCatalogProxyid.setEndpoint(endpoint_0idTemp);
break;
case 10:
        gotMethod = true;
        archsw0904.controller.catalog.Catalog getCatalog10mtemp = sampleCatalogProxyid.getCatalog();
if(getCatalog10mtemp == null){
%>
<%=getCatalog10mtemp %>
<%
}else{
        if(getCatalog10mtemp!= null){
        String tempreturnp11 = getCatalog10mtemp.toString();
        %>
        <%=tempreturnp11%>
        <%
        }}
break;
case 13:
        gotMethod = true;
        %>
        <jsp:useBean id="archsw09041controller1catalog1QueryParam_1id" scope="session" class="archsw0904.controller.catalog.QueryParam" />
        <%
        archsw0904.controller.catalog.Book[] queryBook13mtemp = sampleCatalogProxyid.queryBook(archsw09041controller1catalog1QueryParam_1id);
if(queryBook13mtemp == null){
%>
<%=queryBook13mtemp %>
<%
}else{
        String tempreturnp14 = null;
        if(queryBook13mtemp != null){
        java.util.List listreturnp14= java.util.Arrays.asList(queryBook13mtemp);
        tempreturnp14 = listreturnp14.toString();
        }
        %>
        <%=tempreturnp14%>
        <%
}
break;
case 18:
        gotMethod = true;
        archsw0904.controller.catalog.Book[] queryPromotions18mtemp = sampleCatalogProxyid.queryPromotions();
if(queryPromotions18mtemp == null){
%>
<%=queryPromotions18mtemp %>
<%
}else{
        String tempreturnp19 = null;
        if(queryPromotions18mtemp != null){
        java.util.List listreturnp19= java.util.Arrays.asList(queryPromotions18mtemp);
        tempreturnp19 = listreturnp19.toString();
        }
        %>
        <%=tempreturnp19%>
        <%
}
break;
case 21:
        gotMethod = true;
        String arg0_2id=  request.getParameter("arg048");
            java.lang.String arg0_2idTemp = null;
        if(!arg0_2id.equals("")){
         arg0_2idTemp  = arg0_2id;
        }
        String arg1_3id=  request.getParameter("arg150");
            java.lang.String arg1_3idTemp = null;
        if(!arg1_3id.equals("")){
         arg1_3idTemp  = arg1_3id;
        }
        String arg2_4id=  request.getParameter("arg252");
            java.lang.String arg2_4idTemp = null;
        if(!arg2_4id.equals("")){
         arg2_4idTemp  = arg2_4id;
        }
        String arg3_5id=  request.getParameter("arg354");
            java.lang.String arg3_5idTemp = null;
        if(!arg3_5id.equals("")){
         arg3_5idTemp  = arg3_5id;
        }
        String arg4_6id=  request.getParameter("arg456");
            java.lang.String arg4_6idTemp = null;
        if(!arg4_6id.equals("")){
         arg4_6idTemp  = arg4_6id;
        }
        String arg5_7id=  request.getParameter("arg558");
            java.math.BigDecimal arg5_7idTemp = null;
        if(!arg5_7id.equals("")){
         arg5_7idTemp  = new java.math.BigDecimal(arg5_7id);
        }
        String arg6_8id=  request.getParameter("arg660");
            java.lang.String arg6_8idTemp = null;
        if(!arg6_8id.equals("")){
         arg6_8idTemp  = arg6_8id;
        }
        String arg7_9id=  request.getParameter("arg762");
            java.lang.Integer arg7_9idTemp = null;
        if(!arg7_9id.equals("")){
         arg7_9idTemp  = java.lang.Integer.valueOf(arg7_9id);
        }
        String arg8_10id=  request.getParameter("arg864");
            java.lang.String arg8_10idTemp = null;
        if(!arg8_10id.equals("")){
         arg8_10idTemp  = arg8_10id;
        }
        String arg9_11id=  request.getParameter("arg966");
        boolean arg9_11idTemp  = Boolean.valueOf(arg9_11id).booleanValue();
        String arg10_12id=  request.getParameter("arg1068");
        int arg10_12idTemp  = Integer.parseInt(arg10_12id);
        archsw0904.controller.catalog.Book createBook21mtemp = sampleCatalogProxyid.createBook(arg0_2idTemp,arg1_3idTemp,arg2_4idTemp,arg3_5idTemp,arg4_6idTemp,arg5_7idTemp,arg6_8idTemp,arg7_9idTemp,arg8_10idTemp,arg9_11idTemp,arg10_12idTemp);
if(createBook21mtemp == null){
%>
<%=createBook21mtemp %>
<%
}else{
%>
<TABLE>
<TR>
<TD COLSPAN="3" ALIGN="LEFT">returnp:</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">id:</TD>
<TD>
<%
if(createBook21mtemp != null){
%>
<%=createBook21mtemp.getId()
%><%}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">category:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typecategory26 = createBook21mtemp.getCategory();
        String tempResultcategory26 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typecategory26));
        %>
        <%= tempResultcategory26 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">availableCopies:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.Integer typeavailableCopies28 = createBook21mtemp.getAvailableCopies();
        String tempResultavailableCopies28 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typeavailableCopies28));
        %>
        <%= tempResultavailableCopies28 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">copiesInStockroom:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.Integer typecopiesInStockroom30 = createBook21mtemp.getCopiesInStockroom();
        String tempResultcopiesInStockroom30 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typecopiesInStockroom30));
        %>
        <%= tempResultcopiesInStockroom30 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">author:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typeauthor32 = createBook21mtemp.getAuthor();
        String tempResultauthor32 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typeauthor32));
        %>
        <%= tempResultauthor32 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">price:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.math.BigDecimal typeprice34 = createBook21mtemp.getPrice();
        String tempResultprice34 = org.eclipse.jst.ws.util.JspUtils.markup(typeprice34.toString());
        %>
        <%= tempResultprice34 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">editor:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typeeditor36 = createBook21mtemp.getEditor();
        String tempResulteditor36 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typeeditor36));
        %>
        <%= tempResulteditor36 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">year:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typeyear38 = createBook21mtemp.getYear();
        String tempResultyear38 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typeyear38));
        %>
        <%= tempResultyear38 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">isbn:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typeisbn40 = createBook21mtemp.getIsbn();
        String tempResultisbn40 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typeisbn40));
        %>
        <%= tempResultisbn40 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">title:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typetitle42 = createBook21mtemp.getTitle();
        String tempResulttitle42 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typetitle42));
        %>
        <%= tempResulttitle42 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">shopWindow:</TD>
<TD>
<%
if(createBook21mtemp != null){
%>
<%=createBook21mtemp.isShopWindow()
%><%}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">tag:</TD>
<TD>
<%
if(createBook21mtemp != null){
java.lang.String typetag46 = createBook21mtemp.getTag();
        String tempResulttag46 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typetag46));
        %>
        <%= tempResulttag46 %>
        <%
}%>
</TD>
</TABLE>
<%
}
break;
}
} catch (Exception e) { 
%>
exception: <%= e %>
<%
return;
}
if(!gotMethod){
%>
result: N/A
<%
}
%>
</BODY>
</HTML>